import Vue from 'vue';
import VueRouter from 'vue-router';
const callcenterSetting = () => import('./callcenter/index.vue'); // 呼叫中心设置
const serviceRemarkSetting = () => import('./serviceRemark/index.vue'); // 服务备注设置
const imSetting = () => import('./im/imSetting.vue'); // 姐夫设置
const deskSetting = () => import('./deskSetting/deskSetting.vue'); // 服务台设置
const robotSetting = () => import('./robot/index.vue'); // 机器人设置

Vue.use(VueRouter);

const routes = [
  { path: '/', redirect: '/callcenterSetting' },
  { path: '/callcenterSetting', component: callcenterSetting, name: 'callcenterSetting' },
  { path: '/serviceRemarkSetting', component: serviceRemarkSetting, name: 'serviceRemarkSetting' },
  { path: '/imSetting', component: imSetting, name: 'imSetting' },
  { path: '/deskSetting', component: deskSetting, name: 'deskSetting' },
  { path: '/robotSetting', component: robotSetting, name: 'robotSetting' },
];

const router = new VueRouter({
  base: '/setting/serviceStation/main',
  mode: 'history',
  routes,
});

export default router;
